var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var dailyConf = require('../../app/config/dailyConf');
var config = require('../config');

suite('dailyConf', function () {
    suite('getGoldReward', function () {
        test('获取经验奖励', function () {
            //dailyConf.getGoldReward(30001, 1).should.equal(250);
            //dailyConf.getGoldReward(30001, 2).should.equal(275);
            //dailyConf.getGoldReward(30, 2).should.equal(0);

            // console.log(dailyConf.getGoldReward(30001, 1));
            // console.log(dailyConf.getGoldReward(30001, 2));
            // console.log(dailyConf.getGoldReward(30, 2));
        });
    });

    suite('getExpReward', function () {
        test('获取经验奖励', function () {
            dailyConf.getExpReward(30001, 1).should.equal(20);
            dailyConf.getExpReward(30001, 2).should.equal(40);
            dailyConf.getExpReward(30, 1).should.equal(0);

            // console.log(dailyConf.getExpReward(30001, 1));
            // console.log(dailyConf.getExpReward(30001, 2));
            // console.log(dailyConf.getExpReward(30, 1));
        });
    });

    suite('getDailyTaskActive', function () {
        test('获取任务完成奖励活跃度', function () {
            assert.equal(dailyConf.getDailyTaskActive(30001) != null, true);
        });
    });

    suite('getActiveRewardList', function () {
        test('获取任务完成奖励活跃度列表', function () {
            assert.equal(dailyConf.getActiveRewardList(50) != null, true);
            // console.log(dailyConf.getActiveRewardList(50));
        });
    });
});
